<template>
  <div>
      <van-field label="标题:" placeholder="请输入标题" v-model="title"/>
      
      开始时间: <input type="date" v-model="statime"><br>
      结束时间: <input type="date" v-model="endtime"><br>
      优先级: <van-radio-group>
        <van-radio>1</van-radio>
        <van-radio>2</van-radio>
      </van-radio-group>
      通告类型:<van-radio-group v-model="type">
        <van-radio name="1">全部</van-radio>
        <van-radio name="2">指定部门</van-radio>
        <van-radio name="3">指定用户</van-radio>
        </van-radio-group>
      内容: <textarea name="" id="" cols="30" rows="10" v-model="content"></textarea>
      <button @click="add">添加</button>
                        

  </div>
</template>

<script>
import myaxios from 'axios'
export default {
data () {
  return {
    title:'',
    statim:'',
    endtime:'',
    type:'1',
    content:''
  }
},
methods: {
  add(){
    console.log(this.statime)
    myaxios('','','').then(res=>{
      console.log(res)
    })
    
  }
},
mounted () {
  
}
}
</script>

<style>

</style>